import numpy as np

print(np.version.full_version)

# 一维数组
a = np.arange(20)
print(a)

# 二维数组
b = a.reshape(4, 5)
print(b)

# 高维数组
c = a.reshape(2, 2, 5)
print(c)

# 维度大小
print(c.ndim)
# 维度参数
print(c.shape)
# 元素个数
print(c.size)
# 占位大小（bytes）
print(c.dtype)


raw = [0, 1, 2, 3, 4]
d = np.array(raw)
print(d)
print(raw)
print('type(d):', type(d))
print('type(raw):', type(raw))

k = (4, 5)
print(k, type(k))
l = np.zeros(k)

print(l)